<!DOCTYPE html>
<html>
<head>
    

    

    



    <meta charset="utf-8">
    
    
    
    <title>白羽 批量系列3——批量上架、下架、审核 | NewThink - Blog | 思考，再思考，前进，再前进……</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="">
    <meta name="description" content="白羽 批量系列3——批量上架、下架、审核
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮12345&amp;lt;button class">
<meta property="og:type" content="article">
<meta property="og:title" content="白羽 批量系列3——批量上架、下架、审核">
<meta property="og:url" content="http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/index.html">
<meta property="og:site_name" content="NewThink - Blog">
<meta property="og:description" content="白羽 批量系列3——批量上架、下架、审核
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮12345&amp;lt;button class">
<meta property="og:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113349109.png">
<meta property="og:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/090952500.png">
<meta property="og:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/105427856.png">
<meta property="og:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113020725.png">
<meta property="og:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113037827.png">
<meta property="og:updated_time" content="2017-02-23T04:24:38.613Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="白羽 批量系列3——批量上架、下架、审核">
<meta name="twitter:description" content="白羽 批量系列3——批量上架、下架、审核
只需要 “二、三、四”步骤的代码即可！超级超级简单！！

一：相关图片
                
                    
                    
                
                mark
            
二：HTML代码1、按钮12345&amp;lt;button class">
<meta name="twitter:image" content="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113349109.png">
    
        <link rel="alternative" href="/atom.xml" title="NewThink - Blog" type="application/atom+xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/style.css?v=1.4.7">
    <script>window.lazyScripts=[]</script>
</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">杨红伟</h5>
          <a href="mailto:634206017@qq.com" title="634206017@qq.com" class="mail">634206017@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/yscoder" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://www.weibo.com/ysweb" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                Weibo
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/custom"  >
                <i class="icon icon-lg icon-link"></i>
                测试
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">白羽 批量系列3——批量上架、下架、审核</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">白羽 批量系列3——批量上架、下架、审核</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-02-23T03:49:46.358Z" itemprop="datePublished" class="page-time">
  2017-02-23
</time>


            
        </h5>
    </div>

    

</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-1"><a class="post-toc-link" href="#白羽-批量系列3——批量上架、下架、审核"><span class="post-toc-number">1.</span> <span class="post-toc-text">白羽 批量系列3——批量上架、下架、审核</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#一：相关图片"><span class="post-toc-number">1.1.</span> <span class="post-toc-text">一：相关图片</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#二：HTML代码"><span class="post-toc-number">1.2.</span> <span class="post-toc-text">二：HTML代码</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#1、按钮"><span class="post-toc-number">1.2.1.</span> <span class="post-toc-text">1、按钮</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#2、选择框与全选框"><span class="post-toc-number">1.2.2.</span> <span class="post-toc-text">2、选择框与全选框</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#3、循环的数据"><span class="post-toc-number">1.2.3.</span> <span class="post-toc-text">3、循环的数据</span></a></li></ol></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#三：依赖JS"><span class="post-toc-number">1.3.</span> <span class="post-toc-text">三：依赖JS</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#四：PHP代码"><span class="post-toc-number">1.4.</span> <span class="post-toc-text">四：PHP代码</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#五：注意事项"><span class="post-toc-number">1.5.</span> <span class="post-toc-text">五：注意事项</span></a></li></ol></li></ol>
        </nav>
    </aside>
    
<article id="post-白羽 批量系列3——批量上架、下架、审核"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">白羽 批量系列3——批量上架、下架、审核</h1>
        <div class="post-meta">
            <time class="post-time" title="2017年02月23日 11:49" datetime="2017-02-23T03:49:46.358Z"  itemprop="datePublished">2017-02-23</time>

            


            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


            

        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h1 id="白羽-批量系列3——批量上架、下架、审核"><a href="#白羽-批量系列3——批量上架、下架、审核" class="headerlink" title="白羽 批量系列3——批量上架、下架、审核"></a>白羽 批量系列3——批量上架、下架、审核</h1><blockquote>
<p>只需要 “二、三、四”步骤的代码即可！超级超级简单！！</p>
</blockquote>
<h2 id="一：相关图片"><a href="#一：相关图片" class="headerlink" title="一：相关图片"></a>一：相关图片</h2><figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113349109.png" alt="mark" title="">
                </div>
                <div class="image-caption">mark</div>
            </figure>
<h2 id="二：HTML代码"><a href="#二：HTML代码" class="headerlink" title="二：HTML代码"></a>二：HTML代码</h2><h3 id="1、按钮"><a href="#1、按钮" class="headerlink" title="1、按钮"></a>1、按钮</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">&lt;button class=&quot;btn btn-primary btn-small js-ajax-submit&quot; type=&quot;submit&quot; data-action=&quot;&#123;:U(&apos;Mall/AdminGoods/indexBat&apos;,&apos;type=audit&apos;)&#125;&quot;&gt;审核&lt;/button&gt;</div><div class="line"></div><div class="line">&lt;button class=&quot;btn btn-primary btn-small js-ajax-submit&quot; type=&quot;submit&quot; data-action=&quot;&#123;:U(&apos;Mall/AdminGoods/indexBat&apos;,&apos;type=onshelves&apos;)&#125;&quot;&gt;上架&lt;/button&gt;</div><div class="line"></div><div class="line">&lt;button class=&quot;btn btn-primary btn-small js-ajax-submit&quot; type=&quot;submit&quot; data-action=&quot;&#123;:U(&apos;Mall/AdminGoods/indexBat&apos;,&apos;type=offshelves&apos;)&#125;&quot;&gt;下架&lt;/button&gt;</div></pre></td></tr></table></figure>
<h3 id="2、选择框与全选框"><a href="#2、选择框与全选框" class="headerlink" title="2、选择框与全选框"></a>2、选择框与全选框</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">&lt;tr&gt;</div><div class="line">    &lt;th width=&quot;16&quot;&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; class=&quot;js-check-all&quot; data-direction=&quot;x&quot; data-checklist=&quot;js-check-x&quot;&gt;&lt;/label&gt;&lt;/th&gt;</div><div class="line">&lt;/tr&gt;</div></pre></td></tr></table></figure>
<h3 id="3、循环的数据"><a href="#3、循环的数据" class="headerlink" title="3、循环的数据"></a>3、循环的数据</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">&lt;volist name=&quot;list&quot; id=&quot;good&quot;&gt;</div><div class="line">    &lt;tr&gt;</div><div class="line">        &lt;td style=&quot;vertical-align:middle;&quot;&gt;&lt;input type=&quot;checkbox&quot; class=&quot;js-check&quot; data-yid=&quot;js-check-y&quot; data-xid=&quot;js-check-x&quot; name=&quot;ids[]&quot; value=&quot;&#123;$good[&apos;good_id&apos;]&#125;&quot; title=&quot;ID:&#123;$good[&apos;good_id&apos;]&#125;&quot;&gt;&lt;/td&gt;</div><div class="line">    &lt;/tr&gt;</div><div class="line">&lt;/volist&gt;</div></pre></td></tr></table></figure>
<h2 id="三：依赖JS"><a href="#三：依赖JS" class="headerlink" title="三：依赖JS"></a>三：依赖JS</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&lt;script src=&quot;__PUBLIC__/js/common.js&quot;&gt;&lt;/script&gt;</div></pre></td></tr></table></figure>
<h2 id="四：PHP代码"><a href="#四：PHP代码" class="headerlink" title="四：PHP代码"></a>四：PHP代码</h2><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div></pre></td><td class="code"><pre><div class="line">/**</div><div class="line"> * 商品列表的批量操作</div><div class="line"> * @param string $type    处理类型 order排序</div><div class="line"> */</div><div class="line">public function indexBat($type=&apos;order&apos;) &#123;</div><div class="line">    //上架</div><div class="line">    if ($type == &apos;onshelves&apos;) &#123;</div><div class="line">        $ids = I(&apos;post.ids&apos;);</div><div class="line">        $update_array = array();</div><div class="line">        foreach ($ids as $id) &#123;</div><div class="line">            $update_array[] = array(&apos;good_id&apos; =&gt; $id, &apos;closed&apos; =&gt; &apos;0&apos;);</div><div class="line">        &#125;</div><div class="line"></div><div class="line">        $goods_model = D(&apos;MallGoods&apos;);</div><div class="line">        if ($goods_model -&gt; saveBatch($update_array, &apos;good_id&apos;) !== FALSE) &#123;</div><div class="line">            $this -&gt; success(&apos;上架成功&apos;);</div><div class="line">        &#125; else &#123;</div><div class="line">            $this -&gt; error(&apos;上架失败&apos;);</div><div class="line">        &#125;</div><div class="line">    //下架</div><div class="line">    &#125; elseif ($type == &apos;offshelves&apos;) &#123;</div><div class="line">        $ids = I(&apos;post.ids&apos;);</div><div class="line">        $update_array = array();</div><div class="line">        foreach ($ids as $id) &#123;</div><div class="line">            $update_array[] = array(&apos;good_id&apos; =&gt; $id, &apos;closed&apos; =&gt; &apos;1&apos;);</div><div class="line">        &#125;</div><div class="line"></div><div class="line">        $goods_model = D(&apos;MallGoods&apos;);</div><div class="line">        if ($goods_model -&gt; saveBatch($update_array, &apos;good_id&apos;) !== FALSE) &#123;</div><div class="line">            $this -&gt; success(&apos;下架成功&apos;);</div><div class="line">        &#125; else &#123;</div><div class="line">            $this -&gt; error(&apos;下架失败&apos;);</div><div class="line">        &#125;</div><div class="line">    //审核</div><div class="line">    &#125; elseif ($type == &apos;audit&apos;) &#123;</div><div class="line">        $ids = I(&apos;post.ids&apos;);</div><div class="line">        $update_array = array();</div><div class="line">        foreach ($ids as $id) &#123;</div><div class="line">            $update_array[] = array(&apos;good_id&apos; =&gt; $id, &apos;approved&apos; =&gt; &apos;1&apos;);</div><div class="line">        &#125;</div><div class="line"></div><div class="line">        $goods_model = D(&apos;MallGoods&apos;);</div><div class="line">        if ($goods_model -&gt; saveBatch($update_array, &apos;good_id&apos;) !== FALSE) &#123;</div><div class="line">            $this -&gt; success(&apos;审核成功&apos;);</div><div class="line">        &#125; else &#123;</div><div class="line">            $this -&gt; error(&apos;审核失败&apos;);</div><div class="line">        &#125;</div><div class="line">    &#125;</div><div class="line">&#125;</div></pre></td></tr></table></figure>
<h2 id="五：注意事项"><a href="#五：注意事项" class="headerlink" title="五：注意事项"></a>五：注意事项</h2><p>1、需要有 <code>Model</code> 支持！相关代码如下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">&lt;?php</div><div class="line">namespace Mall\Model;</div><div class="line">use Common\Model\BaseModel;</div><div class="line">class MallGoodsModel extends BaseModel &#123;</div><div class="line"></div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>2、特别注意 <code>saveBatch</code> 这个函数，它的位置在，有兴趣学一学！</p>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://olbhidnfa.bkt.clouddn.com/blog/20170223/090952500.png" alt="mark" title="">
                </div>
                <div class="image-caption">mark</div>
            </figure>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://olbhidnfa.bkt.clouddn.com/blog/20170223/105427856.png" alt="mark" title="">
                </div>
                <div class="image-caption">mark</div>
            </figure>
<p>3、一张图说明逻辑图</p>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113020725.png" alt="mark" title="">
                </div>
                <div class="image-caption">mark</div>
            </figure>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://olbhidnfa.bkt.clouddn.com/blog/20170223/113037827.png" alt="mark" title="">
                </div>
                <div class="image-caption">mark</div>
            </figure>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-02-23T04:24:38.613Z" itemprop="dateUpdated">2017年2月23日 12:24</time>
</span><br>


        这里写留言或版权声明：<a href="/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" target="_blank" rel="external">http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/</a>
    </div>
    <footer>
        <a href="http://newthink.cc">
            <img src="/img/avatar.jpg" alt="杨红伟">
            杨红伟
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            

            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&title=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&pic=http://newthink.cc/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&title=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&source=之所以叫 NewThink，是我们想以更为先进的方式来考虑！" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&via=http://newthink.cc" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2017/02/23/白羽 批量系列4——批量总结/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">白羽 批量系列4——批量总结</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2017/02/23/白羽 批量系列2——批量删除/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">白羽 批量系列2——批量删除</h4>
      </a>
    </div>
  
</nav>



    

<div class="comments" id="comments">
    <div class="ds-thread" data-thread-key="白羽 批量系列3——批量上架、下架、审核" data-title="白羽 批量系列3——批量上架、下架、审核" data-url="http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/"></div>
</div>
<script>
lazyScripts.push('//cdn.bootcss.com/marked/0.3.6/marked.min.js');

var duoshuoQuery = {short_name:'ysblog', theme: 'none'};
lazyScripts.push('/js/embed.min.js?v=1.4.7');


</script>







</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢大爷~
        <i class="icon icon-quote-right"></i>
    </h3>
    <ul class="reward-items">
        
        <li>
            <img src="/img/wechat.jpg" title="微信打赏二维码" alt="微信打赏二维码">
            <p>微信</p>
        </li>
        

        
        <li>
            <img src="/img/alipay.jpg" title="支付宝打赏二维码" alt="支付宝打赏二维码">
            <p>支付宝</p>
        </li>
        
    </ul>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            <span>博客内容遵循 <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">知识共享 署名 - 非商业性 - 相同方式共享 4.0协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p>
            <span>Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a></span>
            <span>NewThink - Blog &copy; 2015 - 2017</span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&title=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&pic=http://newthink.cc/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&title=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&source=之所以叫 NewThink，是我们想以更为先进的方式来考虑！" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《白羽 批量系列3——批量上架、下架、审核》 — NewThink - Blog&url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/&via=http://newthink.cc" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://newthink.cc/2017/02/23/白羽 批量系列3——批量上架、下架、审核/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };



</script>

<script src="/js/main.min.js?v=1.4.7"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="/js/search.min.js?v=1.4.7" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>


</body>
</html>
